-
-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Prevent restore cache on closing connection #548
Conversation
Codecov Report
@@ Coverage Diff @@
## master #548 +/- ##
=========================================
Coverage 95.58% 95.58%
Complexity 357 357
=========================================
Files 45 45
Lines 838 839 +1
=========================================
+ Hits 801 802 +1
Misses 37 37
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
That's intended: what's your issue about this? |
Sometime is occured error when connection to server is interrupted or server go down for unknown reason. Then we call This bug causes to call This PR is changing order of call The |
This PR still raises an Exception when this happens, doesn't it? |
d646ecc
to
f41a047
Compare
Example of bug causes:
When I changed code like this PR, it does not throw two Exception, only one, which is handled. |
Released in |
Thx ❤️ |
This reverts commit 1a0a86e.
This semantic is wrong:
imap/src/Connection.php
Lines 51 to 56 in c8e26a0
because calling of
$this->resource->getStream()
is refill cache cleared on previous line.This PR is change call order to prevent refill cache with reference to closed resource.